'use strict';
//错误码
module.exports = {
    "SUCCESS": 0,
    //系统错误
    "PARAM_ERROR": {
        code: 10001,
        info: '参数错误'
    },
    //mysql错误
    "MYSQL_CONNECT_ERROR": {
        code: 20001,
        info: 'MySQL连接失败'
    },
    "MYSQL_USER_NOT_EXIST": {
        code: 20002,
        info: '用户不存在'
    },
    //redis错误
    "REDIS_CONNECT_ERROR": {
        code: 21001,
        info: 'Redis连接失败'
    },
    //mongodb错误
    "MONGODB_CONNECT_ERROR": {
        code: 22001,
        info: 'MongoDB连接失败'
    },
    //gateway/http错误
    "GATEWAY_CONNECT_ERROR": {
        code: 30001,
        info: 'Gateway请求失败'
    },
    "HTTP_CONNECT_ERROR": {
        code: 35001,
        info: 'Http请求失败'
    },
    "HTTP_TOKEN_OUT_TIME": {
        code: 35002,
        info: 'token过期'
    },
    "HTTP_NOT_EXIT": {
        code: 35002,
        info: '请求不存在'
    },
    //Hall 错误
    "HALL_NOT_PLAYER": {
        code: 40001,
        info: '无法获取玩家信息'
    },
    "HALL_PLAYER_WORK_FAIL": {
        code: 40002,
        info: '设置玩家工作区失败'
    },
    //其他错误
    "UNKNOWN_ERROR": {
        code: 99999,
        info: '未知错误'
    }
};